Skip to content

[ADD] pos_salesperson: salesperson selection and display in POS #913

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: 18.0
Choose a base branch
from

Conversation

piso-odoo
Copy link

Description

This PR introduces the pos_salesperson module, enabling salesperson selection directly in the POS interface and ensuring the information is recorded in POS orders.


Key Features

  • Salesperson Field on Orders
    Added salesperson_id field to pos.order referencing hr.employee to track the salesperson associated with each order.

  • Data Loading in POS
    Updated pos.session to load hr.employee records into the POS data_service, making salesperson data available in the POS frontend.

  • UI Enhancements

    • Patched POS control buttons to include a Salesperson button in the POS UI.
    • Created SalespersonList and SalespersonLine components for selecting a salesperson.
  • Store Functionality
    Patched pos_order to define:

    • get_salesperson() – retrieve the currently selected salesperson.
    • set_salesperson() – set the active salesperson.
  • Backend Views
    Inherited pos.order form and list views to display the salesperson information for each order.

- Added `salesperson_id` field on `pos.order` referencing `hr.employee`
- Updated `pos.session` to load `hr.employee` data into the POS `data_service`
- Patched POS control buttons to include a Salesperson button in the UI
- Patched `pos_store` to define `get_salesperson` and `set_salesperson` methods for managing selection
- Inherited `pos.order` form and list views to display salesperson information
- Created custom `SalespersonList` and `SalespersonLine` components for salesperson selection dialog
@robodoo
Copy link

robodoo commented Aug 8, 2025

Pull request status dashboard

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants